export default {
  cartLength(state) {
    return state.cartList.length
  },
  cartList(state) {
    return state.cartList
  },

  // 映射请求加载
  isLoading(state) {
    return state.isLoading
  },
  // 把getters传给自己,getters默认在第二个参数
  cartListLength: (state, getters) => getters.cartList.length,

}